export interface LoginReq {
  username: string
  password: string
}

export interface TokenStr {
  token?: string
  message?: string
}

export interface LoginRes {
  code: number
  data: TokenStr
}


export interface UserInfo {
  userId:string
  avatar:string
  username:string
  password:string
  roles:string[]
  buttons:string[]
  routes:string[]
  token:string
}
export interface UserInfoRes{
  code:number
  data: UserInfo
}

/**
 * 此时req都是一套模版:code、msg、data等，所以要抽离出来啊。 泛型T
 */
